<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <title>MGR</title>
        <meta charset="utf-8">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

        <link rel="stylesheet" th:href="@{/web/base/css/font-awesome.min.css}" media="all">
        <link rel="stylesheet" th:href="@{/web/base/lib/layui/css/layui.css}" media="all">
        <link rel="stylesheet" th:href="@{/web/master/css/main.css}" media="all">
    </head>
    <body class="layui-layout-body">
        <div class="layui-layout layui-layout-admin">
            <!-- 导航栏 -->
            <div class="layui-header">
                <a href="#" class="layui-logo">
                    <span class="layui-logo-mini">MGR</span>
                    <span class="layui-logo-lg">MGR</span>
                </a>
                <a class="side-toggle layui-layout-left" href="#">
                    <i class="layui-icon layui-icon-shrink-right"></i>
                    <i class="layui-icon layui-icon-spread-left"></i>
                </a>
                <ul class="layui-nav layui-layout-right">
                    <li class="layui-nav-item">
                        <a href="http://www.fontawesome.com.cn/faicons/" target="_blank">图标库</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="#">
                            <i class="fa fa-bell-o fa-lg"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item">
                        <a class="timo-screen-full" href="#">
                            <i class="fa layui-icon layui-icon-screen-full"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item timo-nav-user">
                        <a class="timo-header-nickname" th:text="${cuser.nickname}">MGR</a>
                        <div class="layui-nav-child">
                            <div class="timo-nav-child-box">
                                <div>
                                    <a data-title="修改密码" href="/base/alter">
                                        <i class="fa fa-lock" style="font-size:17px;width:12px;"></i>修改密码
                                    </a>
                                </div>
                                <div><a th:href="@{/base/logout}"><i class="fa fa-power-off"></i>退出登录</a></div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>

            <!-- 侧边栏 -->
            <div class="layui-side layui-bg-black">
                <div class="layui-side-scroll">
                    <div style="text-align: center;width: 100%;">
                    </div>
                    <!-- 导航区域 -->
                    <ul class="layui-nav layui-nav-tree" lay-filter="layui-nav-side">
                        <li class="layui-nav-item" th:each="item,itemStat:${menus}">
                            <a th:if="${item.subs == null}" class="layui-this" href="javascript:;"
                               th:attr="lay-url=${item.url}">
                                <i th:class="${item.icon}"></i><span class="layui-nav-title" th:text="${item.name}">一级菜单链接</span>
                            </a>
                            <a th:if="${item.subs != null}" href="javascript:;" th:attr="lay-url=${item.url}">
                                <i th:class="${item.icon}"></i><span class="layui-nav-title" th:text="${item.name}">一级菜单子菜单</span>
                            </a>
                            <dl class="layui-nav-child" th:if="${item.subs != null}">
                                <dd th:each="sItem:${item.subs}">
                                    <a href="javascript:;" th:attr="lay-url=${sItem.url}"><span class="layui-nav-title"
                                                                                                th:text="${sItem.name}">二级菜单链接</span></a>
                                    <!--
                                    <dl class="layui-nav-child" th:if="${sItem.subs != null}">
                                        <dd th:each="tItem:${sItem.subs}">
                                            <a href="javascript:;" th:attr="lay-url=${tItem.url}"><span class="layui-nav-title" th:text="${tItem.name}">三级菜单</span></a>
                                        </dd>
                                    </dl>
                                    -->
                                </dd>
                            </dl>
                        </li>
                    </ul>
                </div>
            </div>
            <!-- 主体区域 -->
            <div class="layui-body layui-tab layui-tab-brief" lay-allowclose="true" lay-filter="iframe-tabs">
                <!-- 标签栏 -->
                <ul class="layui-tab-title"></ul>
                <!-- 内容区域 -->
                <div class="layui-tab-content"></div>
            </div>
        </div>

        <script th:src="@{/web/base/lib/layui/layui.js}" charset="utf-8"></script>
        <script th:src="@{/web/master/js/main.js}" charset="utf-8"></script>
    </body>
</html>
